<template>
  <div class="homeDiv">
  <el-row :gutter="20">
    <el-col :span="4" v-for="(o, index) in 4" :key="o" class="cardCol">
      <el-card shadow="hover" :body-style="{ padding: '0px' }">
        <img  @click="handerLivePlay()" src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
        <div style="padding: 14px;">
          <span>好吃的汉堡</span>
          <div class="bottom clearfix">
            <time class="time">{{ currentDate }}</time>
          </div>
        </div>
      </el-card>
    </el-col>
  </el-row>
  </div>
</template>

<script>

export default {
  name: "LiveList",
  data() {
    return {
      currentDate: new Date(),
      codeUrl: "",
      redirect: undefined,
      playRoomName:''
    };
  },

  methods: {
    handerLivePlay(){
      //路由跳转
      this.$router.push({ path: '/' + "livePlay"})
    }
  }
};
</script>

<style rel="stylesheet/scss" lang="scss">
  .homeDiv{
    background-color: #fafafa;
    color: black;
    cursor: default;
    font-family: pingfang sc,microsoft yahei,sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    transition: background-color .25s;
    -webkit-user-select: none;
    user-select: none;
  }
  .el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .time {
    font-size: 13px;
    color: #999;
  }
  
  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }
</style>
